package string_test;

/**
 * @author yuisama
 * @date 2022/05/07 19:58
 **/
public class StringReplace {
    public static void main(String[] args) {
        String str = "helloworld";
        System.out.println(str.replaceAll("l","_"));
        System.out.println(str.replaceFirst("l","_"));
        System.out.println(str);
    }
}